package com.zhongying.jf;

/**
 * @author liyuxuan
 * @Description
 * @Email liyuxuan@chinazyjr.com
 * Created on 2017/8/23 16:52
 * Copyright (c) 2017 All Rights Reserved.
 */
public enum ResConstants {

    //公共异常
    SUCCESS("success", "成功"),
    FAIL("fail", "失败"),
    PRE_FAIL("pre_fail","预处理解冻失败"),
    NETWORK_EXCEPTION("network_exception", "网络异常"),
    PARAM_NOT_RIGHT("param_not_right", "入参数值不合法"),
    PARAM_NOT_NULL("param_not_null", "必要参数不能为空"),
    QUERY_DATA_NOT_EXIST("query_data_not_exist", "查询数据不存在"),
    QUERY_DATA_EXIST("query_data_exist", "查询数据存在"),
    API_REPEAT_CALL("api_repeat_call", "接口重复调用"),



    //framework异常
    GET_TOKEN_EXCEPTION("get_token_exception", "获取token异常"),
    GET_DATA_CACHE_EXCEPTION("get_data_cache_exception", "根据KEY获取数据异常"),
    PUT_DATA_CACHE_EXCEPTION("put_data_cache_exception", "将数据放到缓存中异常"),
    DIGITAL_SIGN_EXCEPTION("digital_sign_exception", "数字签名访问异常"),
    IMG_AUTHCODE_EXCEPTION_OUT_TIME("img_authcode_exception_out_time", "图形验证码超时，请重新获取"),
    IMG_AUTHCODE_EXCEPTION_SET_CODE("img_authcode_exception_set_code", "图片验证码不正确"),//前台页面需要设值验证码
    USERNAME_ALREADY_EXIST_EXCEPTION("username_already_exist_exception", "该用户已注册"),
    USERNAME_NON_EXISTENT("username_non_existent", "用户名不存在"),
    LOGIN_USERTYPE_NOT_MATCH("login_usertype_not_match", "用户类型不匹配，请前往PC端登录或注册投资人"),
    QUERY_DATA_EXCEPTION("query_data_exception", "查询数据异常"),
    SMS_SERNTIME_EXCEPTION("sms_serntime_exception", "短信发送时间间隔太小，涉嫌恶意操作"),
    SMS_SEND_EXCEPTION("sms_send_exception", "短信发送异常"),
    ILLEGAL_PHONE_NUM_STYLE_EXCEPTION("illegal_phone_num_style_exception", "错误的手机格式"),
    MOBILE_IS_EXIST_EXCEPTION("mobile_is_exist_exception", "该手机号已注册！"),
    SMS_HAS_RAN_OUT_EXCEPTION("sms_has_ran_out_exception", "短信验证码已失效"),
    INTERFACE_ACCESS_EXCEPTION("interface_access_exception", "接口调用获取异常"),
    USER_NOT_LOGIN("user_not_login", "用户未登录"),
    IP_LOCK_EXCEPTION("userBlacksList", "IP已锁定"),
    AVAILABLE_AMOUNT_NOT_ENOUGH("available_amount_not_enough", "用户可提现金额不足"),
    FEE_TYPE_NON_EXISTENT("fee_type_non_existent", "手续费类型不存在"),
    CASH_FAIL("cash_fail", "取现失败"),
    RESBONSE_RESOLVE_FAIL("resbonse_resolve_fail", "响应结果解析失败"),
    BANK_CALL_BACK_FAIL("bank_call_back_fail", "银行异步回调解析失败"),
    BANK_CALL_BACK_HANDLE_FAIL("bank_call_back_handle_fail", "银行异步回调处理失败"),

    //zhongying-api异常
    USER_LOCKED_EXCEPTION("user_locked_exception", "用户已被锁定"),
    PASSWORD_FAIL_EXCEPTION("password_fail_exception", "登录密码不正确"),
    //userManage异常
    REGISTER_USER_TYPE_ERROR("register_user_type_error","注册用户角色不匹配"),
    CHOOSE_LOGIN_USER_TYPE("choose_login_user_type","选择登录角色"),
    USER_IS_NOT_REGISTER("user_is_not_register","用户未注册"),
    USER_REGISTER_OTHER_ROLE("user_register_other_role","用户已注册另一个角色"),
    DO_NOT_BIND_CARD("do_not_bind_card","用户未绑卡"),
    DO_NOT_OPEN_ACCOUNT("do_not_open_account","用户未开户"),
    DO_NOT_OPEN_NORMAL_ACCOUNT("do_not_open_normal_account","普通用户未开户"),
    DO_NOT_OPEN_COMPANY_ACCOUNT("do_not_open_company_account","企业用户未开户"),
    ALREADY_BIND_CARD("already_bind_card","用户已绑卡"),
    USER_IS_NONACTIVATED("user_is_nonactivated","用户已开户未激活"),
    PASSWORD_DO_NOT_EQUAL("password_do_not_equal","两次输入密码不一致"),
    NEWPASSWORD_EQUAL_OLDPASSWORD("newpassword_equal_oldpassword","新密码和原密码相同"),
    COMPANY_INFO_CONFIRM("company_info_confirm","企业信息确认"),
    COMPANY_INFO_ACCEPT("company_info_accept","企业信息已受理"),
    COMPANY_INFO_AUDITING("company_info_auditing","存管审核中"),
    COMPANY_INFO_BACK("company_info_back","存管回退"),
    OPEN_ACCOUNT_USER_NOT_SIGN("open_account_user_not_sign","用户未签约"),
    //project-from异常
    BORROW_CONTRACTNO_NO_REPEAT("contractno_repeat", "合同号不能重复录入"),


    //project-from异常
    NOT_REPEAT_BORROW("not_repeat_borrow","同一个用户不能再多个平台同时借款"),
    CAPITAL_NOT_BORROW("capital_not_borrow","产金端用户不能发标"),
    ZZT_HLW_NOT_BORROW("zzt_hlw_borrow","好利网和卓信平台不能发标"),

    //project-sale异常
    BORROW_UPDATE_EXCEPTION("borrow_update_exception", "标的更新失败"),
    BORROW_PERIOD_UNIT_TYPE_NOT_INVAILD("BORROW_PERIOD_UNIT_TYPE_NOT_INVAILD","标时间类型不合法"),
    LOSE_BID_FAIL("lose_bid_fail","流标失败"),
    BID_NOT_EXIST("bid_not_exist","标的不存在"),
    BID_LOAN_FAIL("bid_loan_fail","标的放款失败"),
    BID_IN_THE_DRAW("bid_in_the_draw","标的计息中"),
    BID_IS_END("bid_is_end","标的已结束"),
    BID_IS_LOST("bid_is_lost","标的已流标"),
    BID_CANT_LOAN("bid_cant_loan","标的不可放款"),
    INVEST_NOT_EXIST("invest_not_exist","没有投资记录"),
    GENERATION_OF_WITHDRAWAL_ERROR("generation_of_withdrawal_error","代提现异常"),
    BID_IN_LOAN("bid_in_loan","标的放款中"),
    LOAN_IS_FAIL("loan_is_fail","放款失败"),
    BIDLOAN_NOT_EXIST("bidloan_not_exist","放款记录不存在"),
    GENERATION_OF_WITHDRAWAL_NOT_EXIST("generation_of_withdrawal_not_exist","代提现订单不存在"),
    IN_GENERATION_OF_WITHDRAWAL("in_generation_of_withdrawal","订单代提现中"),
    FEE_OVERSERVICE("fee_overservice","服务费超标"),

    //project-sale 资金与资产撮合异常
    MATCH_FAIL("match_fail", "撮合发生异常"),
    AUTO_BUY_FAIL("auto_buy_fail", "自动购买失败"),

    //project-plan异常
    REPAY_AMOUNT_EXCEPTION("repay_amount_exception", "还款金额异常"),
    BORROW_STATUS_DISSATISFY_REPAY("borrow_status_dissatisfy_repay", "该标的状态不满足还款要求"),
    REPAY_DISSATISFY_EXCEPTION("repay_dissatisfy_exception", "不满足还款要求"),
    BILLINVESTDETAIL_NON_EXIT("billinvestdetail_non_exit", "详细回款计划不存在"),
    INVESTER_NON_EXIT("invester_non_exit", "投资人不存在"),
    LOANER_NON_EXIT("loaner_non_exit", "借款人不存在"),
    REPAY_FAIL("repay_fail", "还款失败！"),
    BORROW_STATUS_NON_EXISTENT("borrow_status_non_existent","该标的状态不在计息中"),
    REPAY_TYPE_NON_EXISTENT("repay_type_non_existent","还款类型不存在"),
    REPAY_CURSTAGENO_EXCEPTION("repay_curstageno_exception","回款期数与当前应还款期数不符"),
    RECOVER_AMOUNT_BEYOND_EXCEPTION("recover_amount_beyond_exception","本期应回款总额超出当前应收总额"),
    RECOVER_AMOUNT_EXCEPTION("recover_amount_exception","本期应回款总额异常"),

    //order异常

    //accountManage异常
    USER_ALREADY_IN_ACCOUNT("user_already_in_account","该身份证已开户中"),
    BANK_CARD_IN_USE("bank_card_in_use","银行卡已被使用"),
    USER_ALREADY_OPEN_ACCOUNT("user_already_open_account", "用户已开户"),
    USER_ALREADY_NOT_OPEN_ACCOUNT("user_already_not_open_account", "用户未开户"),
    BANK_NOT_EXIST("bank_not_exist", "银行不存在"),
    USERACCOUNT_NOT_EXIST("useraccount_not_exist", "账户不存在"),
    FROZEN_AMOUNT_NOT_ENOUGH("frozen_amount_not_enough", "用户冻结金额不足"),
    ACCOUNT_IS_UPDATED("account_is_updated", "账户已被更改"),
    FROZEN_AMOUNT_HIDDEN_NOT_ENOUGH("frozen_amount_hidden_not_enough", "用户冻结金额（不可见）不足"),
    ACCOUNT_AVAILABLE_AMOUNT_NOT_ENOUGH("account_available_amount_not_enough", "用户可用额度不足"),
    CASH_WAIT_NOT_ENOUGH("cash_wait_not_enough", "用户待收本金不足"),
    PROFIT_WAIT_HIDDEN_NOT_ENOUGH("profit_wait_hidden_not_enough", "用户待收收益不足"),
    BANK_REPAYTRANSFERACCOUNTS_EXCEPTION("bank_repaytransferaccounts_exception", "还款调用银行接口失败"),
    PLATFORM_TRANSFER_LOANER_EXCEPTION("platform_transfer_loaner_exception", "平台转账至借款人失败"),
    BANK_TRANSFER_EXCEPTION("bank_transfer_exception", "银行转账失败"),
    RECOVER_AMOUNT_THAW_FAIL("recover_amount_thaw_fail", "回款资金解冻失败"),
    BANK_REPAY_FAIL("bank_repay_fail", "银行还款失败！"),
    BANK_CARD_NO_ALREADY__ACCOUNT("bank_card_no_already_in_open_account","银行卡已开户"),
    USER_ID_CARD_DIFFER("user_id_card_differ","用户投资与借款角色证件号不一致"),


    //请求豪康贷异常
    HKD_EXCEPTION("hkd_exception","请求豪康贷异常"),

    //bank异常

    //卡券异常
    COUPON_CAN_NOT_USE("coupon_can_not_use", "卡券不可用"),

    //操作数据库异常
    UPD_DATA_FAIL("upd_data_fail", "更新数据失败"),
    DEL_DATA_FAIL("del_data_fail", "删除数据失败"),
    ADD_DATA_FAIL("add_data_fail", "添加数据失败"),

    //自动投标
    AUTO_TENDER_FAIL("auto_tender_fail","自动投标失败"),
    AUTO_TENDER_AVAILABLE_AMOUNT_NOT_ENOUGH("auto_tender_available_amount_not_enough","自动投标账户可用余额不足"),
    AUTO_TENDER_BID_INFO_MISMATCHING("auto_tender_bid_info_mismatching","自动投标信息不匹配"),
    AUTO_TENDER_COUPON_CANT_USE("auto_tender_coupon_cant_use","自动投标卡券不可用"),
    AUTO_TENDER_BORROW_NOT_EXIST("auto_tender_borrow_not_exist","自动投标的标的不存在"),
    AUTO_TENDER_VALIDATE_USER_FAIL("auto_tender_validate_user_fail","自动投标校验用户失败");


//    // 1000-1030 为系统公共异常
//
//    PARAM_NOT_RIGHT(1001, "入参数值不合法"),
//    PARAM_NOT_NULL(1002, "必要参数不能为空"),
//    QUERY_DATA_EXCEPTION(1003, "查询数据异常"),
//    QUERY_DATA_EXIST(1004, "查询数据存在"),
//    QUERY_DATA_NOT_EXIST(1005, "查询数据不存在"),
//    ADD_DATA_FAIL(1006, "添加数据失败"),
//    UPD_DATA_FAIL(1007, "更新数据失败"),
//    DEL_DATA_FAIL(1008, "删除数据失败"),
//    OBJECT_NOT_NULL(1009, "入参对象不能为空"),
//    INTERFACE_ACCESS_EXCEPTION(1010, "接口调用获取异常"),
//    RUNTIME_EXCEPTION(1011,"运行时异常"),
//    API_SIGNATURE_EXCEPTION(1012, "数字验签异常"),
//    API_SIGNATURE_OUT_TIME_EXCEPTION(1013, "数字签名秘钥已失效"),
//    API_SIGNATURE_NOT_EXIST_EXCEPTION(1014, "数字签名非法不存在"),
//
//    // 1130-1140  为http对外请求异常
//    HTTPS_REQUEST_EXCEPTION(1130, "https请求异常"),
//    HTTPS_COMMUNICATION_FAIL(1131,"https网络通讯失败"),
//    HTTPS_REQUERT_FAIL(1132 , "https请求处理结果失败"),
//
//    // 1501-1530 为登陆记录异常
//    USERNAME_NON_EXISTENT(1501, "用户名不存在"),
//    PASSWORD_FAIL_EXCEPTION(1502, "登陆密码不正确"),
//    IMG_AUTHCODE_EXCEPTION(1503, "图片验证码不正确"),
//    PASSWORD_FAIL_EXCEPTION_SET_CODE(1505, "登陆密码不正确"),//前台页面需要设值验证码
//    IMG_AUTHCODE_EXCEPTION_SET_CODE(1506, "图片验证码不正确"),//前台页面需要设值验证码
//    USER_LOCKED_EXCEPTION(1507, "用户已被锁定"),
//    USER_LOCKED_FAILED_EXCEPTION(1508, "用户锁定失败"),
//    ILLEGAL_PHONE_NUM_STYLE_EXCEPTION(1509, "错误的手机格式"),
//    ILLEGAL_PASSWORD_STYLE_EXCEPTION(1510, "错误的密码格式"),
//    IMG_AUTHCODE_EXCEPTION_OUT_TIME(1511, "图形验证码超时，请重新获取"),
//    MOBILE_IS_EXIST_EXCEPTION(1512, "该手机号已注册！"),
//
//    PAY_CASH_BIG100_EXCEPTION(1520 , "余额大于100时,提现额度必须大于100"),
//    PAY_CASH_SMALL100_EXCEPTION(1521 , "账户余额小于100时需全额提取"),
//    PAY_CASH_TIMES_EXCEPTION(1522 , "提现次数大于限定次数"),
//    PAY_CASH_AMOUNT_EXCEPTION(1523,"可用额度小于提现额度"),
//    PAY_CASH_EXCEPTION(1524,"提现异常"),
//    WITHDRAW_NOT_INVEST(1525, "体验金收益\n需投资后才能提现"),
//    PAY_CASH_SMALL_FREE_EXCEPTION(1526,"剩余金额小于提现手续费"),
//    WITHDRAW_RELEASE_FROZEN_FAIL(1527,"提现解冻失败！"),
//
//
//
//    // 1531-1630 为注册记录异常
//    ADD_REGINFO_EXCEPTION(1531, "记录注册来路异常"),
//    DIGITAL_SIGN_EXCEPTION(1532, "数字签名访问异常"),
//    SMS_SEND_EXCEPTION(1533, "短信发送异常"),
//    SMS_TIME_EXCEPTION(1534, "短信发送时间异常"),
//    SMS_AUTHCODE_EXCEPTION(1535, "短信验证码不正确"),
//    SMS_SERNTIME_EXCEPTION(1536, "短信发送时间间隔太小，涉嫌恶意操作"),
//    SMS_SERNUM_EXCEPTION(1537, "短信发送次数异常，次数超过合法阈值，涉嫌恶意操作"),
//    USERNAME_ALREADY_EXIST_EXCEPTION(1538, "该用户已注册"),
//    SMS_HAS_RAN_OUT_EXCEPTION(1539, "短信验证码已失效"),
//    EMPLOYEE_NON_EXISTENT(1540, "员工不存在！"),
//    EMPLOYEE_IS_REGISTER(1541, "员工不存在！"),
//
//    // 1551-1560 用户信息修改异常
//    PASSWORD_NEW_OLD_EXCEPTION(1551, "两次输入密码不一致！"),
//
//    // 1631-1640 为缓存异常
//    PUT_DATA_CACHE_EXCEPTION(1631, "将数据放到缓存中异常"),
//    GET_DATA_CACHE_EXCEPTION(1632, "根据KEY获取数据异常"),
//
//    // 1641-1670 为MQ异常
//    SEND_MQ_EXCEPTION(1641, "发送MQ消息异常"),
//
//    //1670-1690 为正则验证异常
//    MOBLIE_FORMAT_EXCEPTION(1671,"手机号码格式不正确"),
//
//    //1691-1709  支付注册用户
//    CREATE_SINA_MEMBER_FAIL(1691,"创建用户解析失败"),
//    CREATE_SINA_MEMBER_QEQUEST_FAIL(1692,"创建用户请求失败"),
//
//    SINA_PAY_EXCEPTION(1721,"新浪支付统一异常"),
//    PAY_FROZEN_AMOUNT_EXCEPTION(1720,"账户冻结异常"),
//
//    //1710-1750 为绑卡异常
//    ACCOUNT_CASH_PASSWORD_WRONG(1701,"交易密码错误"),
//    BANK_NOT_MATCH(1691,"银行卡不匹配"),
//    USER_CARD_IS_BINDED(1620,"该银行卡已经绑定过,请核对!"),
//    USER_IS_NOT_BINDED(1621,"该用户未绑定过银行卡，请核对！"),
//
//    //1801-1850 红包异常
//    BONUS_STATUS_EXCEPTION(1801,"红包状态异常不可分享"),
//    BOUNS_NOT_EXISTS(1802,"红包被抢光或不存在"),
//    BOUNS_RECEIVE_REPEATED(1803,"不能重复抢红包"),
//    BONUS_NOT_EXISTS(1804,"红包券不存在"),
//    REGISTER_INVITE_CODE_INVIDE(1805,"邀请码无效"),
//    BORROW_supplement_FAILT(1806,"盖标失败"),
//    BONUS_IS＿EXP(1807,"分享红包已过期"),
//
//    //1851-1900 活动标的相关信息
//    ACTIV_INVEST_NOT_EXIST(1851,"该活动标的已经被抢完，欢迎下次光临"),
//    ACTIV_INVITE_USER_NOT(1852,"您目前还未达到拿大奖的要求，赶快去邀请好友吧"),
//
//    //1901-1920
//    ACTIVITY_DRAW_NOT_EXIST(1901, "抽奖活动不存在或已过期"),
//    USER_NOT_LUCKYDRAW(1902,"用户没有抽奖机会"),
//    USER_GETLUCKDRAW_EXCEPTION(1903,"用户获取抽奖机会失败"),
//
//    //1921-2000 为投资异常
//    INVEST_FAIL(1921,"投资失败"),
//    INVEST_STATUS_NOT_INVALID(1922,"标当前不可投"),
//    INVEST_BORROW_REMAIN_AMOUNT_NOT_ENOUGH(1923,"可投额度不足"),
//    INVEST_BORROW_MIN_INVEST_AMOUNT(1924,"用户可用额度少于投资额度"),
//    INVEST_BORROW_START_INVERST_TIME(1925,"标未到开始时间"),
//    BORROW_NOT_EXISTS(1926,"标不存在"),
//    USER_ACCOUNT_NOT_EXISTS(1927,"用户账户不存在"),
//    BORROW_NID_IS_NOT_NULL(1928,"标ID不能为空"),
//    USER_ID_IS_NOT_NULL(1929,"用户ID不能为空"),
//    BORROW_INVEST_AMOUNT_IS_NOT_NULL(1930,"投资金额不能为空"),
//    BORROW_INVEST_AMOUNT_LT_MIN_INVEST(1931,"投资金额不能少于最低投资额度"),
//    BORROW_INVEST_TIME_TYPE_NOT_INVAILD(1932,"标时间类型不合法"),
//    BORROW_EXPECTED_REVENUE_NOT_MATCH(1933,"传入的预期收益与服务器端计算结果不匹配"),
//    BORROW_INVEST_USER_NOT_BIND_CARD(1934,"用户未绑卡"),
//    BORROW_FULL(1935,"很遗憾，下手慢了项目以募集成功"),
//    BORROW_INVEST_NID_IS_NOT_NULL(1936,"NID不能为空"),
//    BORROW_INVEST_CASH_PASSWORD_IS_NOT_NULL(1937,"交易密码不能为空"),
//    BORROW_INVEST_CASH_PASSWORD_WRON(1938,"交易密码错"),
//    BORROW_INVEST_NID_IS_NOT_INVAILD(1939,"NID无效"),
//    BORROW_INVEST_COUPON_NOT_INVALID(1940,"优惠码无效"),
//    BORROW_INVEST_BOUNS_COUNT_OVER(1941,"红包券数量超出系统限定"),
//    BORROW_INVEST_BONUS_AMOUNT_OVER(1942,"红包券金额超出系统限定"),
//    BORROW_INVEST_CASHBACK_MISMATCH_RULE(1943,"立返券规则不匹配"),
//    BORROW_INVEST_UPDATE_4CASHBACK_FAIL(1944,"立返券返现失败"),
//    BORROW_INVEST_OVER_MAX_INVEST_AMOUNT(1945,"投资额度超过标的最大可投额度"),
//    BORROW_INFEST_EXPIRY(1946,"标已过截止日"),
//    BORROW_INVEST_COUPON_UNDER_MIN_AMOUNT(1947,"投资额度不能少于红包券的最低投资额度"),
//    NOVICE_IS_INVEST_ONE(1948,"新手标只能购买一次！"),
//    INVEST_SECKILL_SUM_EXCEPTION(1949,"同一个用户购买单个聚财宝类型标的总额上限为10000元！"),
//    INVEST_INVITE_EXCEPTION(1950,"投资邀请码必须是注册时推荐人邀请码！"),
//    INVEST_RELEASE_FROZEN_FAIL(1951,"投资解冻失败！"),
//    USER_ACCOUNT_AMOUNT_NOT_ZERO(1952,"用户账户可用余额必须为0"),
//    REMAIN_AMOUNT_ALL_INVEST(1953, "需要一次性全部购买标的剩余额度"),
//    USER_NOT_OPEN_ACCOUNT(1954, "用户未开户"),
//
//
//    //2001-2010为用户状态异常
//    USER_IS_ENTRUST(2001, "用户已设置委托扣款"),
//    USER_NOT_LOG(2002, "用户未登陆"),
//    USER_MOBILE_ERROR(2003, "用户账户与手机号不匹配"),
//
//    BORROW_REPLAN_EXCEPTION(2010,"生成还款计划异常"),
//
//    //2020-2030 为发放活期标的利息异常
//    DEMAND_GRANT_INTEREST_RATE_IS_NULL(2021,"昨日活期标利息为空"),
//    DEMAND_GRANT_INTEREST_GRANT_ERROR(2022,"昨日活期标利息发放失败"),
//
//    SINA_VAILD_EXCEEPTION(2030,"返回值解析失败"),
//    SINA_FOPAY_EXCEEPTION(2031,"代收失败"),
//    HUIFU_INVEST_EXCEPTION(2032,"汇付主动投资失败"),
//
//
//    PAY_NETSAVE_LIMIT_EXCEPTION(3000,"充值金额超过限额！"),
//    PAY_NETSAVE_EXCEPTION(3001,"充值出现异常！"),
//    PAY_QUERYCARDINFO_EXCEPTION(3002,"银行卡查询接口出现异常！"),
//    PAY_AUTOTENDER_EXCEPTION(3003,"自动投标接口出现异常！"),
//    PAY_TRANSFER_EXCEPTION(3004,"转账接口出现异常！"),
//    PAY_ADDBIDINfO_EXCEPTION(3005,"标的录入接口出现异常！"),
//    PAY_BOSACCTACTIVATE_EXCEPTION(3006,"存管账户激活接口出现异常！"),
//    PAY_INITIATIVETENDER_EXCEPTION(3007,"主动投标接口出现异常！"),
//    PAY_LOANS_EXCEPTION(3008,"放款接口出现异常！"),
//    PAY_NOTCODE_SENTSMS_EXCEPTION(3009,"请输入手机验证码！"),
//    PAY_ERR_SENTSMS_EXCEPTION(3010,"该手机号不是存管开户手机号"),
//    PAY_ERR_QUERYBIDINFODETAIL_EXCEPTION(3011,"标的投标信息查询接口出现异常！"),
//    PAY_ERR_TOREPAYMENT_EXCEPTION(3012,"还款接口出现异常！"),
//    PAY_ERR_QUERYTRANSDETAIL_EXCEPTION(3013,"交易明细查询接口出现异常！"),
//    PAY_ERR_TOMERCASH_EXCEPTION(3014,"商户代取现接口出现异常！"),
//    PAY_ERR_TODIRECTRECHARGE_EXCEPTION(3015,"充值(划扣)接口出现异常！"),
//
//    PAY_ERR_TOAUTOTENDERCANCLE_EXCEPTION(3016,"投标撤销接口出现异常！"),
//    PAY_ERR_TOAUTOTENDERPLAN_EXCEPTION(3017,"自动投标计划(开启)接口出现异常！"),
//    PAY_ERR_TOAUTOTENDER_EXCEPTION(3018,"自动投标接口出现异常！"),
//    PAY_ERR_TOAUTOTENDERPLANCLOSE_EXCEPTION(3019,"自动投标关闭接口出现异常！"),
//    PAY_ERR_QUERYTENDERPLAN_EXCEPTION(3020,"自动投标计划状态查询接口出现异常！"),
//    PAY_ERR_TOCREDITASSIGN_EXCEPTION(3021,"债权转让接口出现异常！"),
//    PAY_ERR_TOAUTOCREDITASSIGN_EXCEPTION(3022,"自动债权转让接口出现异常！"),
//    PAY_ERR_TOCREDITASSIGNRECONCILIATION_EXCEPTION(3023,"债权转让查询接口出现异常！"),
//
//
//
//
//    NOT_PRODUCT_PEOJECT(3101, "不存在的标的项目"),
//    LOAN_PRODUCT_EXIST(3102, "该项目已经在还款，不能重复提交。"),
//
//    REPAY_ERROR(4000,"还款失败"),
//    REPAY_NO_REPAYMENT(4001,"无还款记录"),
//    REPAY_ERROR_MONEY(4002,"金额不足"),
//    REPAY_SUCCESS(4003,"还款成功"),
//
//    USER_STATUS_OPEN(4010,"复投开关已经打开"),
//    USER_STATUS_CLOSE(4011,"复投开关已经关闭"),
//    USER_STATUS_ERROR(4012,"用户信息有误"),
//    USER_STATUS_OPER_ERROR(4013,"操作有误"),
//    USER_STATUS_OPEN_ERROR(4014,"复投开关打开失败"),
//    USER_STATUS_CLOSE_ERROR(4015,"复投开关关闭失败"),
//    USER_STATUS_CREDITOR_ERROR(4016,"债权持有中，不能关闭")
//    ;


    private final String code; // 错误码

    private final String msg; // 错误描述

    private ResConstants(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getMsg(String desc) {
        return msg + ":" + desc;
    }
}